package com.meng.ioclibrary;

import android.app.Activity;
import android.view.View;

/**
 * Created by Administrator on 2017/5/3.
 * View
 * Activity
 * Fragment
 */

public class ViewUtils {
    public static void inject(Activity aty){
        inject(new ViewFinder(aty),aty);
    }

    public static void inject(View view){
        inject(new ViewFinder(view),view);
    }
    public static void inject(View view,Object object){
        inject(new ViewFinder(view),object);
    }

    /**
     * 兼容上面3个方法
     */
    private static void inject(ViewFinder viewFinder,Object object){
        viewFinder.initInject(object);
    }
}
